﻿<?xml version="1.0" encoding="utf-8"?>
<Elements xmlns="http://schemas.microsoft.com/sharepoint/">
	<WorkflowActions>
		<Action Name="Run Workflow On Items"
				Assembly="$SharePoint.Project.AssemblyFullName$"
				ClassName="Learn.SharePoint.com.RunWorkflowOnItemsActivity"
				FunctionName="Run Workflow On Items"
				AppliesTo="all"
				Category="Learn.SharePoint.com">			
			<RuleDesigner Sentence="Go to url %1 and open list %2 and run workflow named %3 on all items satisfying caml query %4 with initiation parameters %5">
				<FieldBind Field="SiteUrl"
						   Text="http://www.contoso.com/sites/site/subsite" Id="1"
						   DesignerType="TextArea" />
				<FieldBind Field="ListName"
						   Text="Shared Documents" Id="2"
						   DesignerType="TextArea" />
				<FieldBind Field="WorkflowName"
						   Text="Workflow 1" Id="3"
						   DesignerType="TextArea" />				
				<FieldBind Field="CamlQuery"
						   Text="&lt;Where&gt;&lt;Eq&gt;&lt;FieldRef Name=&quot;ID&quot;/&gt;&lt;Value type=&quot;Counter&quot;&gt;1&lt;/Value&gt;&lt;/Eq&gt;&lt;/Where&gt;" Id="4"
						   DesignerType="TextArea" />
				<FieldBind Field="InitiationParameters"
						   Text="&lt;Data&gt;&lt;Parameter1&gt;Value1&lt;/Parameter1&gt;&lt;/Data&gt;" Id="5"
						   DesignerType="TextArea" />
			</RuleDesigner>
			<Parameters>
				<Parameter Name="__Context"
						   Type="Microsoft.SharePoint.WorkflowActions.WorkflowContext, 
                   Microsoft.SharePoint.WorkflowActions"
								 Direction="In"
								 DesignerType="Hide"/>
				<Parameter Name="SiteUrl"
						   Type="System.String, mscorlib"
						   Direction="In"
						   DesignerType="TextArea"
						   Description="SiteUrl"/>
				<Parameter Name="ListName"
						   Type="System.String, mscorlib"
						   Direction="In"
						   DesignerType="TextArea"
						   Description="ListName"/>
				<Parameter Name="WorkflowName"
						   Type="System.String, mscorlib"
						   Direction="In"
						   DesignerType="TextArea"
						   Description="WorkflowName"/>
				<Parameter Name="CamlQuery"
						   Type="System.String, mscorlib"
						   Direction="In"
						   DesignerType="TextArea"
						   Description="CamlQuery"/>
				<Parameter Name="InitiationParameters"
						   Type="System.String, mscorlib"
						   Direction="In"
						   DesignerType="TextArea"
						   Description="InitiationParameters"/>
			</Parameters>
		</Action>
	</WorkflowActions>
</Elements>